package com.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Emp {
private int id;
private String ename;
private Dept dept;
@DateTimeFormat(pattern="yyyy-MM-dd")//将页面中的字符串装换成日期格式
private Date birthday;
private String sex;
private String photo;
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getEname() {
	return ename;
}
public void setEname(String ename) {
	this.ename = ename;
}
public Dept getDept() {
	return dept;
}
public void setDept(Dept dept) {
	this.dept = dept;
}
public Date getBirthday() {
	return birthday;
}
public void setBirthday(Date birthday) {
	this.birthday = birthday;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getPhoto() {
	return photo;
}
public void setPhoto(String photo) {
	this.photo = photo;
}
@Override
public String toString() {
	return "Emp [id=" + id + ", ename=" + ename + ", dept=" + dept + ", birthday=" + birthday + ", sex=" + sex
			+ ", photo=" + photo + "]";
}

}
